package com.elitel.frame.base.component.exportprojectdata;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component("hiveConfInfo")
@ConfigurationProperties(prefix = "hive")
@ConditionalOnProperty(prefix = "hive", name = "enabled", havingValue = "true")
public class HiveConfInfo {
    @Value("${hive.jdbc.driverName}")
    public String driverName;

    @Value("${hive.impala.jdbc.url}")
    public String impalaUrl;

    @Value("${hive.jdbc.user}")
    public String user;

    @Value("${hive.jdbc.password}")
    public String password;

    @Value("${hive.metadata.check}")
    public boolean metadataCheck;
}
